* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Noto Sans SC', sans-serif;
}

body {
    background-color: #f5f7fa;
    color: #2c3e50;
}

.header {
    background: #fff;
    padding: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    max-width: 85%;
    margin: 0 auto;
}

.header h1 {
    text-align: center;
    color: #2c3e50;
    font-size: 24px;
    margin-bottom: 10px;
}

.container {
    display: flex;
    padding: 10px;
    max-width: 85%;
    margin: 0 auto;
    gap: 30px;
}

.left-panel {
    flex: 1;
}

.product-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.product-modal .modal-content {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    max-width: 1500px;
    width: 95%;
    height: 600px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.product-modal .close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    color: #666;
}

.product-modal .close-modal:hover {
    color: #333;
}

.controls {
    background: #fff;
    padding: 10px;
    height: 60px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    margin-bottom: 30px;
    display: flex;
    gap: 15px;
    position: sticky;
    top: 84px;
    z-index: 99;
}

.search-box {
    flex: 1;
    padding: 5px 10px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s;
    outline: none;
}

.search-box:focus {
    border-color: #4299e1;
    box-shadow: 0 0 0 3px rgba(66,153,225,0.2);
}

.page-size {
    padding: 5px 10px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    height: 40px;
    font-size: 16px;
    background: #fff;
    cursor: pointer;
    outline: none;
    min-width: 120px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.product-item {
    position: relative;
    max-width: 200px;
    background: #fff;
    border-radius: 12px;
    padding: 15px;
    padding-bottom: 40px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.product-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.15);
}

.product-item img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 12px;
}

.product-item .code {
    font-weight: 500;
    color: #2d3748;
    font-size: 16px;
    position: absolute;
    bottom: 10px;
    left: 0;
    right: 0;
    padding: 0 15px;
}

.pagination {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
    flex-wrap: wrap;
    gap: 8px;
}


.pagination button {
    padding: 8px 16px;
    border: none;
    background: #fff;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    color: #2d3748;
}

.pagination button:hover {
    background: #4299e1;
    color: #fff;
}

.pagination button:disabled {
    background: #4299e1;
    color: #fff;
    cursor: default;
}

.product-code-title {
    font-size: 24px;
    color: #2d3748;
    text-align: center;
    margin: 0 auto 10px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e2e8f0;
    width: 100%;
}

.product-info h3 {
    font-size: 24px;
    color: #2d3748;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e2e8f0;
}

.product-info p {
    color: #4a5568;
    line-height: 1.6;
    margin-bottom: 20px;
}

.product-info .report-link {
    margin-top: 25px;
    text-align: center;
}

.product-info .report-link a {
    display: inline-block;
    padding: 12px 24px;
    background: #4299e1;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s;
}

.product-info .report-link a:hover {
    background: #3182ce;
    transform: translateY(-2px);
}

.product-info .report-link a.disabled {
    background: #cbd5e0;
    cursor: not-allowed;
    transform: none !important;
}

.product-info .report-link a.disabled:hover {
    background: #cbd5e0;
    transform: none !important;
}

.product-info img {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .header-content,
    .container {
        max-width: 95%;
    }

    .container {
        flex-direction: column;
    }
    
    .right-panel {
        width: 100%;
        position: fixed;
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        max-height: 60vh;
        border-radius: 20px 20px 0 0;
    }

    .controls {
        flex-direction: column;
        top: 74px;
    }

    .page-size {
        width: 100%;
    }
}

    .stats-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 auto 20px; 
    padding: 10px 15px;
    background: #edf2f7;
    border-radius: 8px;
    width: 90vh;
}

/* 筛选器容器 */
.filters-container {
    margin-bottom: 15px;
}

.filters-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .filters-row {
        flex-direction: column;
        align-items: stretch;
    }
    
    .pagination {
        flex-wrap: wrap;
    }
}

.product-code-title {
    font-size: 24px;
    color: #2d3748;
    text-align: center;
    margin: 0 auto 10px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e2e8f0;
    width: 100%;
}

.product-info h3 {
    font-size: 24px;
    color: #2d3748;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e2e8f0;
}

.product-info p {
    color: #4a5568;
    line-height: 1.6;
    margin-bottom: 20px;
}

.product-info .report-link {
    margin-top: 25px;
    text-align: center;
}

.product-info .report-link a {
    display: inline-block;
    padding: 12px 24px;
    background: #4299e1;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s;
}

.product-info .report-link a:hover {
    background: #3182ce;
    transform: translateY(-2px);
}

.product-info .report-link a.disabled {
    background: #cbd5e0;
    cursor: not-allowed;
    transform: none !important;
}

.product-info .report-link a.disabled:hover {
    background: #cbd5e0;
    transform: none !important;
}

.product-info img {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .header-content,
    .container {
        max-width: 95%;
    }

    .container {
        flex-direction: column;
    }
    
    .right-panel {
        width: 100%;
        position: fixed;
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        max-height: 60vh;
        border-radius: 20px 20px 0 0;
    }

    .controls {
        flex-direction: column;
        top: 74px;
    }

    .page-size {
        width: 100%;
    }
}

    .stats-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 auto 20px; 
    padding: 10px 15px;
    background: #edf2f7;
    border-radius: 8px;
    width: 90vh;
}
.total-count {
    font-size: 15px;
    color: #2d3748;
    font-weight: 500;
}

.total-count span {
    color: #4299e1;
    font-weight: 700;
}

.tips {
    display: flex;
    align-items: center;
    gap: 8px;
}

.tip-icon {
    font-size: 16px;
}

.tip-text {
    font-size: 14px;
    color: #718096;
}

@media (max-width: 768px) {
    .stats-bar {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}

.no-results {
    text-align: center;
    font-size: 18px;
    color: #718096;
    padding: 10px 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin: 20px;
    display: flex;
    align-items: center;
    height: 100%;
    flex-direction: column;
    width: 178vh;
    justify-content: center;
}

.no-results:before {
    content: '';
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="%23718096" d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8zm-.59-5.41h-4v-1.59h4v1.59zm0-3.18h-4v-1.59h4v1.59zM12 9c-.83 0-1.5-.67-1.5-1.5S11.17 6 12 6s1.5.67 1.5 1.5S12.83 9 12 9zm6.33 6.91c-.65.65-1.71.65-2.36 0l-.7-.71.71-.7 1.41 1.41.7.71c.15.15.22.34.22.54 0 .2-.07.4-.22.55zM13 17.9v-1.59h1.59l-1.59 1.59z"/></svg>');
    background-repeat: no-repeat;
    width: 24px;
    height: 24px;
    margin-right: 10px;
}

@media (max-width: 768px) {
    .no-results {
        padding: 20px;
    }
}

        /* 添加水印样式 */
        .watermark {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            pointer-events: none;
            z-index: 9999;
        }
        
        .watermark-item {
            position: absolute;
            user-select: none;
            color: rgba(0, 0, 0, 0.2);
            transform: rotate(-30deg);
            font-size: 16px;
            white-space: pre-line; 
            line-height: 1.8; 
        }

        .no-permission-note {
            position: absolute;
            right: 20px;
            bottom: 20px;
            color: #e53e3e;
            font-size: 14px;
        }

        #changePasswordModal {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0,0,0,0.5);
            z-index: 1000;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        #changePasswordModal .layui-layer-page {
            width: 500px;
            background: #fff;
            border-radius: 8px;
            box-shadow: 0 4px 12px rgba(0,0,0,0.1);
            overflow: hidden;
        }
        
        #changePasswordModal {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: #f0f0f0; /* 设置背景颜色为不透明 */
            z-index: 1000;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        #changePasswordModal .layui-layer-page {
            width: 500px;
            background: #fff; /* 模态框背景颜色 */
            border-radius: 8px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2); /* 添加阴影效果 */
            overflow: hidden;
        }
        
        #changePasswordModal .layui-layer-title {
            height: 50px;
            line-height: 50px;
            padding: 0 20px;
            background: #007bff; /* 修改标题背景颜色 */
            color: #fff; /* 修改标题文字颜色 */
            font-size: 16px;
            font-weight: 500;
        }
        
        #changePasswordModal .layui-layer-content {
            padding: 20px;
        }
        
        #changePasswordModal .layui-form-item {
            margin-bottom: 20px;
        }
        
        #changePasswordModal .layui-form-label {
            width: 100px;
        }
        
        #changePasswordModal .layui-input-block {
            margin-left: 130px;
        }

        .search-box, .select-box {
            padding: 12px 20px;
            border: 2px solid #e2e8f0;
            border-radius: 8px;
            font-size: 16px;
            outline: none;
            transition: border-color 0.3s;
        }
        
        .search-box:focus, .select-box:focus {
            border-color: #4299e1; /* 聚焦时的边框颜色 */
        }
        
        .select-box {
            width: auto; /* 根据内容自适应宽度 */
            min-width: 150px; /* 设置最小宽度 */
        }
        
        .btn {
            padding: 12px 24px;
            border: none;
            border-radius: 8px;
            background: #4299e1;
            color: #fff;
            cursor: pointer;
            transition: all 0.3s;
        }
        
        .btn:hover {
            background: #3182ce;
        }

.status-badge {
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    display: inline-block;
}

.status-active {
    background-color: #e8f5e9;
    color: #2e7d32;
}

.status-inactive {
    background-color: #fafafa;
    color: #757575;
}

.status-warning {
    background-color: #fff3e0;
    color: #e65100;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
}

.data-table th,
.data-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.data-table th {
    background-color: #f5f5f5;
    font-weight: 500;
}

.data-table tr:hover {
    background-color: #f8f9fa;
}